Skip to content

feat: add static filename and info served by fileserver to context vars #6983

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arthurpro
Copy link

Right now it is impossible to get any information about the file served by fileserver from other middlewares.
I'm proposing this tiny addition to fileserver module to put info about a static file served by it into the request context.

@CLAassistant
Copy link

CLAassistant commented Apr 23, 2025

CLA assistant check
All committers have signed the CLA.

@mholt
Copy link
Member

mholt commented Apr 28, 2025

Thanks for the PR; I'm on the go and unable to check right now, but don't we set placeholders indicating the file that was served? (Or is that only in the file matcher, that we set placeholders of what was matched?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants